package com.etc.dao;

import com.etc.model.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentMapper {
    int deleteById(Integer id);

    int insert(Student record);

    int insertSelective(Student record);

    Student findById(Integer id);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

    List<Student> findByUsernameAndPassword(@Param("Username") String Username
            , @Param("Password") String Password);

    List<Student> findByUsername(@Param("username") String username);

    Student findFirstByUsername(@Param("username") String username);

    Student findAllByNameAndUsername(@Param("name") String name, @Param("username") String username);

    Student findFirstByStudentnumber(@Param("studentnumber") String studentnumber);

    List<Student> findAll();

}